
const { ethers } = require("ethers");
const Web3 = require('web3');

const web3 = new Web3();

 const { AbiCoder } = require('ethers');
const abiCoder = new AbiCoder();
let data = '0x000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000002dfdc1c3e0000000000000000000000008e7fbb49f436d0e8a50c02f631e729a57a9a0aca0000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000000a68656c6c6f776f726c6400000000000000000000000000000000000000000000'


const types = [ 'bytes'];

const encodedData = data; // Your hexadecimal ABI-encoded data
const decodedValues = abiCoder.decode(types, encodedData);

console.log('decodedValues: ', decodedValues);